package com.esyoga.yoyoga.pojo;

import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Component
public class TBillExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TBillExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBIdIsNull() {
            addCriterion("b_id is null");
            return (Criteria) this;
        }

        public Criteria andBIdIsNotNull() {
            addCriterion("b_id is not null");
            return (Criteria) this;
        }

        public Criteria andBIdEqualTo(Integer value) {
            addCriterion("b_id =", value, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdNotEqualTo(Integer value) {
            addCriterion("b_id <>", value, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdGreaterThan(Integer value) {
            addCriterion("b_id >", value, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("b_id >=", value, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdLessThan(Integer value) {
            addCriterion("b_id <", value, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdLessThanOrEqualTo(Integer value) {
            addCriterion("b_id <=", value, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdIn(List<Integer> values) {
            addCriterion("b_id in", values, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdNotIn(List<Integer> values) {
            addCriterion("b_id not in", values, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdBetween(Integer value1, Integer value2) {
            addCriterion("b_id between", value1, value2, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdNotBetween(Integer value1, Integer value2) {
            addCriterion("b_id not between", value1, value2, "bId");
            return (Criteria) this;
        }

        public Criteria andBUseridIsNull() {
            addCriterion("b_userid is null");
            return (Criteria) this;
        }

        public Criteria andBUseridIsNotNull() {
            addCriterion("b_userid is not null");
            return (Criteria) this;
        }

        public Criteria andBUseridEqualTo(Integer value) {
            addCriterion("b_userid =", value, "bUserid");
            return (Criteria) this;
        }

        public Criteria andBUseridNotEqualTo(Integer value) {
            addCriterion("b_userid <>", value, "bUserid");
            return (Criteria) this;
        }

        public Criteria andBUseridGreaterThan(Integer value) {
            addCriterion("b_userid >", value, "bUserid");
            return (Criteria) this;
        }

        public Criteria andBUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("b_userid >=", value, "bUserid");
            return (Criteria) this;
        }

        public Criteria andBUseridLessThan(Integer value) {
            addCriterion("b_userid <", value, "bUserid");
            return (Criteria) this;
        }

        public Criteria andBUseridLessThanOrEqualTo(Integer value) {
            addCriterion("b_userid <=", value, "bUserid");
            return (Criteria) this;
        }

        public Criteria andBUseridIn(List<Integer> values) {
            addCriterion("b_userid in", values, "bUserid");
            return (Criteria) this;
        }

        public Criteria andBUseridNotIn(List<Integer> values) {
            addCriterion("b_userid not in", values, "bUserid");
            return (Criteria) this;
        }

        public Criteria andBUseridBetween(Integer value1, Integer value2) {
            addCriterion("b_userid between", value1, value2, "bUserid");
            return (Criteria) this;
        }

        public Criteria andBUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("b_userid not between", value1, value2, "bUserid");
            return (Criteria) this;
        }

        public Criteria andBUsertypeIsNull() {
            addCriterion("b_usertype is null");
            return (Criteria) this;
        }

        public Criteria andBUsertypeIsNotNull() {
            addCriterion("b_usertype is not null");
            return (Criteria) this;
        }

        public Criteria andBUsertypeEqualTo(Integer value) {
            addCriterion("b_usertype =", value, "bUsertype");
            return (Criteria) this;
        }

        public Criteria andBUsertypeNotEqualTo(Integer value) {
            addCriterion("b_usertype <>", value, "bUsertype");
            return (Criteria) this;
        }

        public Criteria andBUsertypeGreaterThan(Integer value) {
            addCriterion("b_usertype >", value, "bUsertype");
            return (Criteria) this;
        }

        public Criteria andBUsertypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("b_usertype >=", value, "bUsertype");
            return (Criteria) this;
        }

        public Criteria andBUsertypeLessThan(Integer value) {
            addCriterion("b_usertype <", value, "bUsertype");
            return (Criteria) this;
        }

        public Criteria andBUsertypeLessThanOrEqualTo(Integer value) {
            addCriterion("b_usertype <=", value, "bUsertype");
            return (Criteria) this;
        }

        public Criteria andBUsertypeIn(List<Integer> values) {
            addCriterion("b_usertype in", values, "bUsertype");
            return (Criteria) this;
        }

        public Criteria andBUsertypeNotIn(List<Integer> values) {
            addCriterion("b_usertype not in", values, "bUsertype");
            return (Criteria) this;
        }

        public Criteria andBUsertypeBetween(Integer value1, Integer value2) {
            addCriterion("b_usertype between", value1, value2, "bUsertype");
            return (Criteria) this;
        }

        public Criteria andBUsertypeNotBetween(Integer value1, Integer value2) {
            addCriterion("b_usertype not between", value1, value2, "bUsertype");
            return (Criteria) this;
        }

        public Criteria andBBilltypeIsNull() {
            addCriterion("b_billtype is null");
            return (Criteria) this;
        }

        public Criteria andBBilltypeIsNotNull() {
            addCriterion("b_billtype is not null");
            return (Criteria) this;
        }

        public Criteria andBBilltypeEqualTo(Integer value) {
            addCriterion("b_billtype =", value, "bBilltype");
            return (Criteria) this;
        }

        public Criteria andBBilltypeNotEqualTo(Integer value) {
            addCriterion("b_billtype <>", value, "bBilltype");
            return (Criteria) this;
        }

        public Criteria andBBilltypeGreaterThan(Integer value) {
            addCriterion("b_billtype >", value, "bBilltype");
            return (Criteria) this;
        }

        public Criteria andBBilltypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("b_billtype >=", value, "bBilltype");
            return (Criteria) this;
        }

        public Criteria andBBilltypeLessThan(Integer value) {
            addCriterion("b_billtype <", value, "bBilltype");
            return (Criteria) this;
        }

        public Criteria andBBilltypeLessThanOrEqualTo(Integer value) {
            addCriterion("b_billtype <=", value, "bBilltype");
            return (Criteria) this;
        }

        public Criteria andBBilltypeIn(List<Integer> values) {
            addCriterion("b_billtype in", values, "bBilltype");
            return (Criteria) this;
        }

        public Criteria andBBilltypeNotIn(List<Integer> values) {
            addCriterion("b_billtype not in", values, "bBilltype");
            return (Criteria) this;
        }

        public Criteria andBBilltypeBetween(Integer value1, Integer value2) {
            addCriterion("b_billtype between", value1, value2, "bBilltype");
            return (Criteria) this;
        }

        public Criteria andBBilltypeNotBetween(Integer value1, Integer value2) {
            addCriterion("b_billtype not between", value1, value2, "bBilltype");
            return (Criteria) this;
        }

        public Criteria andBOrderTradeNoIsNull() {
            addCriterion("b_order_trade_no is null");
            return (Criteria) this;
        }

        public Criteria andBOrderTradeNoIsNotNull() {
            addCriterion("b_order_trade_no is not null");
            return (Criteria) this;
        }

        public Criteria andBOrderTradeNoEqualTo(String value) {
            addCriterion("b_order_trade_no =", value, "bOrderTradeNo");
            return (Criteria) this;
        }

        public Criteria andBOrderTradeNoNotEqualTo(String value) {
            addCriterion("b_order_trade_no <>", value, "bOrderTradeNo");
            return (Criteria) this;
        }

        public Criteria andBOrderTradeNoGreaterThan(String value) {
            addCriterion("b_order_trade_no >", value, "bOrderTradeNo");
            return (Criteria) this;
        }

        public Criteria andBOrderTradeNoGreaterThanOrEqualTo(String value) {
            addCriterion("b_order_trade_no >=", value, "bOrderTradeNo");
            return (Criteria) this;
        }

        public Criteria andBOrderTradeNoLessThan(String value) {
            addCriterion("b_order_trade_no <", value, "bOrderTradeNo");
            return (Criteria) this;
        }

        public Criteria andBOrderTradeNoLessThanOrEqualTo(String value) {
            addCriterion("b_order_trade_no <=", value, "bOrderTradeNo");
            return (Criteria) this;
        }

        public Criteria andBOrderTradeNoLike(String value) {
            addCriterion("b_order_trade_no like", value, "bOrderTradeNo");
            return (Criteria) this;
        }

        public Criteria andBOrderTradeNoNotLike(String value) {
            addCriterion("b_order_trade_no not like", value, "bOrderTradeNo");
            return (Criteria) this;
        }

        public Criteria andBOrderTradeNoIn(List<String> values) {
            addCriterion("b_order_trade_no in", values, "bOrderTradeNo");
            return (Criteria) this;
        }

        public Criteria andBOrderTradeNoNotIn(List<String> values) {
            addCriterion("b_order_trade_no not in", values, "bOrderTradeNo");
            return (Criteria) this;
        }

        public Criteria andBOrderTradeNoBetween(String value1, String value2) {
            addCriterion("b_order_trade_no between", value1, value2, "bOrderTradeNo");
            return (Criteria) this;
        }

        public Criteria andBOrderTradeNoNotBetween(String value1, String value2) {
            addCriterion("b_order_trade_no not between", value1, value2, "bOrderTradeNo");
            return (Criteria) this;
        }

        public Criteria andBMoneyIsNull() {
            addCriterion("b_money is null");
            return (Criteria) this;
        }

        public Criteria andBMoneyIsNotNull() {
            addCriterion("b_money is not null");
            return (Criteria) this;
        }

        public Criteria andBMoneyEqualTo(BigDecimal value) {
            addCriterion("b_money =", value, "bMoney");
            return (Criteria) this;
        }

        public Criteria andBMoneyNotEqualTo(BigDecimal value) {
            addCriterion("b_money <>", value, "bMoney");
            return (Criteria) this;
        }

        public Criteria andBMoneyGreaterThan(BigDecimal value) {
            addCriterion("b_money >", value, "bMoney");
            return (Criteria) this;
        }

        public Criteria andBMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("b_money >=", value, "bMoney");
            return (Criteria) this;
        }

        public Criteria andBMoneyLessThan(BigDecimal value) {
            addCriterion("b_money <", value, "bMoney");
            return (Criteria) this;
        }

        public Criteria andBMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("b_money <=", value, "bMoney");
            return (Criteria) this;
        }

        public Criteria andBMoneyIn(List<BigDecimal> values) {
            addCriterion("b_money in", values, "bMoney");
            return (Criteria) this;
        }

        public Criteria andBMoneyNotIn(List<BigDecimal> values) {
            addCriterion("b_money not in", values, "bMoney");
            return (Criteria) this;
        }

        public Criteria andBMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("b_money between", value1, value2, "bMoney");
            return (Criteria) this;
        }

        public Criteria andBMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("b_money not between", value1, value2, "bMoney");
            return (Criteria) this;
        }

        public Criteria andBTradeNoIsNull() {
            addCriterion("b_trade_no is null");
            return (Criteria) this;
        }

        public Criteria andBTradeNoIsNotNull() {
            addCriterion("b_trade_no is not null");
            return (Criteria) this;
        }

        public Criteria andBTradeNoEqualTo(String value) {
            addCriterion("b_trade_no =", value, "bTradeNo");
            return (Criteria) this;
        }

        public Criteria andBTradeNoNotEqualTo(String value) {
            addCriterion("b_trade_no <>", value, "bTradeNo");
            return (Criteria) this;
        }

        public Criteria andBTradeNoGreaterThan(String value) {
            addCriterion("b_trade_no >", value, "bTradeNo");
            return (Criteria) this;
        }

        public Criteria andBTradeNoGreaterThanOrEqualTo(String value) {
            addCriterion("b_trade_no >=", value, "bTradeNo");
            return (Criteria) this;
        }

        public Criteria andBTradeNoLessThan(String value) {
            addCriterion("b_trade_no <", value, "bTradeNo");
            return (Criteria) this;
        }

        public Criteria andBTradeNoLessThanOrEqualTo(String value) {
            addCriterion("b_trade_no <=", value, "bTradeNo");
            return (Criteria) this;
        }

        public Criteria andBTradeNoLike(String value) {
            addCriterion("b_trade_no like", value, "bTradeNo");
            return (Criteria) this;
        }

        public Criteria andBTradeNoNotLike(String value) {
            addCriterion("b_trade_no not like", value, "bTradeNo");
            return (Criteria) this;
        }

        public Criteria andBTradeNoIn(List<String> values) {
            addCriterion("b_trade_no in", values, "bTradeNo");
            return (Criteria) this;
        }

        public Criteria andBTradeNoNotIn(List<String> values) {
            addCriterion("b_trade_no not in", values, "bTradeNo");
            return (Criteria) this;
        }

        public Criteria andBTradeNoBetween(String value1, String value2) {
            addCriterion("b_trade_no between", value1, value2, "bTradeNo");
            return (Criteria) this;
        }

        public Criteria andBTradeNoNotBetween(String value1, String value2) {
            addCriterion("b_trade_no not between", value1, value2, "bTradeNo");
            return (Criteria) this;
        }

        public Criteria andBDescriptionIsNull() {
            addCriterion("b_description is null");
            return (Criteria) this;
        }

        public Criteria andBDescriptionIsNotNull() {
            addCriterion("b_description is not null");
            return (Criteria) this;
        }

        public Criteria andBDescriptionEqualTo(String value) {
            addCriterion("b_description =", value, "bDescription");
            return (Criteria) this;
        }

        public Criteria andBDescriptionNotEqualTo(String value) {
            addCriterion("b_description <>", value, "bDescription");
            return (Criteria) this;
        }

        public Criteria andBDescriptionGreaterThan(String value) {
            addCriterion("b_description >", value, "bDescription");
            return (Criteria) this;
        }

        public Criteria andBDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("b_description >=", value, "bDescription");
            return (Criteria) this;
        }

        public Criteria andBDescriptionLessThan(String value) {
            addCriterion("b_description <", value, "bDescription");
            return (Criteria) this;
        }

        public Criteria andBDescriptionLessThanOrEqualTo(String value) {
            addCriterion("b_description <=", value, "bDescription");
            return (Criteria) this;
        }

        public Criteria andBDescriptionLike(String value) {
            addCriterion("b_description like", value, "bDescription");
            return (Criteria) this;
        }

        public Criteria andBDescriptionNotLike(String value) {
            addCriterion("b_description not like", value, "bDescription");
            return (Criteria) this;
        }

        public Criteria andBDescriptionIn(List<String> values) {
            addCriterion("b_description in", values, "bDescription");
            return (Criteria) this;
        }

        public Criteria andBDescriptionNotIn(List<String> values) {
            addCriterion("b_description not in", values, "bDescription");
            return (Criteria) this;
        }

        public Criteria andBDescriptionBetween(String value1, String value2) {
            addCriterion("b_description between", value1, value2, "bDescription");
            return (Criteria) this;
        }

        public Criteria andBDescriptionNotBetween(String value1, String value2) {
            addCriterion("b_description not between", value1, value2, "bDescription");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}